package com.tianji.learning.entity.data;

import com.tianji.learning.entity.po.LearningRecord;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 延迟任务数据
 */

@Data
@NoArgsConstructor
public class RecordTaskData {
    private Long lessonId;
    private Long sectionId;
    private Integer moment;

    public RecordTaskData(LearningRecord record) {
        this.lessonId = record.getLessonId();
        this.sectionId = record.getSectionId();
        this.moment = record.getMoment();
    }
}